import {lazy} from 'react'

export const DataExplorerPage = lazy(
  () => import('src/dataExplorer/components/DataExplorerPage')
)

export const TasksPage = lazy(() => import('src/tasks/containers/TasksPage'))
export const TaskPage = lazy(() => import('src/tasks/containers/TaskPage'))
export const TaskRunsPage = lazy(
  () => import('src/tasks/components/TaskRunsPage')
)
export const TaskEditPage = lazy(
  () => import('src/tasks/containers/TaskEditPage')
)
export const TaskImportOverlay = lazy(
  () => import('src/tasks/components/TaskImportOverlay')
)
export const DashboardsIndex = lazy(
  () => import('src/dashboards/components/dashboard_index/DashboardsIndex')
)
export const DashboardContainer = lazy(
  () => import('src/dashboards/components/DashboardContainer')
)
export const FlowPage = lazy(() => import('src/flows/components/FlowPage'))
export const VersionPage = lazy(
  () => import('src/flows/components/VersionPage')
)
export const BucketsIndex = lazy(
  () => import('src/buckets/containers/BucketsIndex')
)
export const TokensIndex = lazy(
  () => import('src/authorizations/containers/TokensIndex')
)
export const TelegrafsPage = lazy(
  () => import('src/telegrafs/containers/TelegrafsPage')
)
export const ScrapersIndex = lazy(
  () => import('src/scrapers/containers/ScrapersIndex')
)
export const WriteDataPage = lazy(
  () => import('src/writeData/containers/WriteDataPage')
)
export const FileUploadsPage = lazy(
  () => import('src/writeData/containers/FileUploadsPage')
)
export const ClientLibrariesPage = lazy(
  () => import('src/writeData/containers/ClientLibrariesPage')
)
export const TelegrafPluginsPage = lazy(
  () => import('src/writeData/containers/TelegrafPluginsPage')
)
export const SecretsIndex = lazy(
  () => import('src/secrets/containers/SecretsIndex')
)
export const VariablesIndex = lazy(
  () => import('src/variables/containers/VariablesIndex')
)
export const LabelsIndex = lazy(
  () => import('src/labels/containers/LabelsIndex')
)
export const OrgProfilePage = lazy(
  () => import('src/organizations/containers/OrgProfilePage')
)
export const AlertingIndex = lazy(
  () => import('src/alerting/components/AlertingIndex')
)
export const AlertHistoryIndex = lazy(
  () => import('src/alerting/components/AlertHistoryIndex')
)
export const CheckHistory = lazy(
  () => import('src/checks/components/CheckHistory')
)
export const MembersIndex = lazy(
  () => import('src/members/containers/MembersIndex')
)
export const RouteToDashboardList = lazy(
  () => import('src/dashboards/components/RouteToDashboardList')
)
export const FlowsIndex = lazy(() => import('src/flows/components/FlowsIndex'))
export const NotFound = lazy(() => import('src/shared/components/NotFound'))
export const UsersPage = lazy(() => import('src/users/components/Users'))
export const UsagePage = lazy(() => import('src/usage/UsagePage'))
export const BillingPage = lazy(
  () => import('src/billing/components/BillingPage')
)
export const OperatorPage = lazy(() => import('src/operator/OperatorPage'))
export const AccountPage = lazy(
  () => import('src/operator/account/AccountPage')
)
export const UserAccountPage = lazy(() => import('src/accounts/AccountPage'))
export const OrgOverlay = lazy(() => import('src/operator/OrgOverlayWrapper'))

export const CheckoutPage = lazy(() => import('src/checkout/CheckoutPage'))

export const SubscriptionsLanding = lazy(
  () => import('src/writeData/subscriptions/components/SubscriptionsLanding')
)
export const CreateSubscriptionForm = lazy(
  () => import('src/writeData/subscriptions/components/CreateSubscriptionPage')
)

export const HomepageContainer = lazy(() =>
  import('src/homepageExperience/containers/HomepageContainer').then(
    module => ({default: module.HomepageContainer})
  )
)

export const ArduinoWizard = lazy(() =>
  import('src/homepageExperience/containers/ArduinoWizard').then(module => ({
    default: module.ArduinoWizard,
  }))
)

export const PythonWizard = lazy(() =>
  import('src/homepageExperience/containers/PythonWizard').then(module => ({
    default: module.PythonWizard,
  }))
)

export const NodejsWizard = lazy(() =>
  import('src/homepageExperience/containers/NodejsWizard').then(module => ({
    default: module.NodejsWizard,
  }))
)

export const GoWizard = lazy(() =>
  import('src/homepageExperience/containers/GoWizard').then(module => ({
    default: module.GoWizard,
  }))
)

export const CSharpWizard = lazy(() =>
  import('src/homepageExperience/containers/CSharpWizard').then(module => ({
    default: module.CSharpWizard,
  }))
)

export const JavaWizard = lazy(() =>
  import('src/homepageExperience/containers/JavaWizard').then(module => ({
    default: module.JavaWizard,
  }))
)

export const CliWizard = lazy(() =>
  import('src/homepageExperience/containers/CliWizard').then(module => ({
    default: module.CliWizard,
  }))
)

export const DetailsSubscriptionPage = lazy(
  () => import('src/writeData/subscriptions/components/DetailsSubscriptionPage')
)
